package cn.b.sky.shop.activiti;

import org.activiti.rest.editor.main.PluginRestResource;
import org.activiti.rest.editor.model.ModelEditorJsonRestResource;
import org.restlet.routing.Router;

public class MyModelerServicesInit {
  
  private MyModelerServicesInit() {
    // Hide the constructor
  }
  
  public static void attachResources(Router router) {
    router.attach("/model/{modelId}/json", ModelEditorJsonRestResource.class);
    router.attach("/model/{modelId}/save", MyModelSaveRestResource.class);

    router.attach("/editor", MyEditorRestResource.class);
    router.attach("/editor/plugins", PluginRestResource.class);
    router.attach("/editor/{language}/stencilset", MyStencilsetRestResource.class);
  }
}
